/*******************************************************************************
 * Copyright (c) 2010, 2030 www.mahao.cn
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package cn.itlaobing.ssm.contoller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import cn.itlaobing.ssm.service.UserService;

/** 
 * ClassName: UserController <br/> 
 * Function: TODO 功能描述 <br/> 
 * date: 2019年4月2日 下午3:55:38 <br/> 
 * 
 * @author Mmmmm 
 * @version  
 * @since JDK 1.8 
 */
@Controller
public class UserController {

	@Autowired
	private UserService userService;
	
	@GetMapping("/user")
	public String getOne(Integer id,Model model){
		model.addAttribute("user", userService.getOne(id));
		return "/user/index";
	}
}
